package com.leenmvc.core.web;

/**
 * 定义返回结果的编码对应关系
 *
 */
public enum ResultCode {

    SUCCESS(0, "成功返回"),

    INFO(250, "返回提示信息"),

    FAIL(500, "后台出现异常导致无法返回正常结果, 此时前端应静默"),

    NO_AUTHORIZED(401, "权限问题将返回此码！");

    public int code;

    public String message;

    ResultCode(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
